package com.nanfang51g3.ckz.utils;

/**
 * Created by Administrator on 2016/4/23.
 */
public class NumUtil {
    public static String NumberFormat(float f, int m) {
        KLog.i("Evd", "2-f=" + f + "m=" + m);
        return String.format("%.0" + m + "f", f);
    }

    public static float NumberFormatFloat(float f, int m) {
        KLog.i("Evd", "1-f=" + f + "m=" + m);
        String strfloat = NumberFormat(f, m);
        KLog.i("Evd", "3-str float=" +strfloat);
        return Float.parseFloat(strfloat);
    }
}
